//
//  GMSponsorModel.m
//  golfMaster
//
//  Created by 宋鹏程 on 14-4-23.
//  Copyright (c) 2014年 宋鹏程. All rights reserved.
//

#import "GMBannerModel.h"

@implementation GMBannerModel

+ (instancetype)modelWithTitle:(NSString *)title imageURLStr:(NSString *)string;
{
    return [[self alloc] initModelWithTitle:title imageURLStr:string];
}

- (instancetype)initModelWithTitle:(NSString *)title imageURLStr:(NSString *)string;
{
    self = [super init];
    if (self) {
//        _bTitle = title;
//        _bImageURLStr = string;
    }
    return self;
}

- (instancetype)initModelWithDict:(NSDictionary *)bannerDict
{
    self = [super init];
    if (self) {
        //后续添加
        if(bannerDict[@"uuid"] !=[NSNull null]){
            
            self.UUID=bannerDict[@"uuid"];
        }
        
        if(bannerDict[@"image"] !=[NSNull null]){
            
            self.imageURL=bannerDict[@"image"];
        }
        
        if(bannerDict[@"title"] !=[NSNull null]){
            
            self.title=bannerDict[@"title"];
        }
        
        if(bannerDict[@"category"] !=[NSNull null]){
            
            self.category=bannerDict[@"category"];
        }
        
        if(bannerDict[@"url"] !=[NSNull null]){
            
            self.url=bannerDict[@"url"];
        }
    }
    
    return self;
}

@end
